﻿@model CleverCMS.Cms.Services.ViewModels.RegisterExternalLoginModel

@{
    ViewBag.Title = "Register";
}
<div class="row-fluid">
    <div class="span12">
        <div class="widget green">
            <div class="widget-title">
                <h4><i class="icon-reorder"></i>Unsuccessful login</h4>
            </div>
            <div class="widget-body form">

                <hgroup class="title">
                    <h1>@ViewBag.Title.</h1>
                    <h2>Associate your @ViewBag.ProviderDisplayName account.</h2>
                </hgroup>

                @using (Html.BeginForm("ExternalLoginConfirmation", "Account", new { ReturnUrl = ViewBag.ReturnUrl }))
                {
                    @Html.AntiForgeryToken()
                    @Html.ValidationSummary(true)

                    <fieldset>
                        <legend>Association Form</legend>
                        <p>
                            You've successfully authenticated with <strong>@ViewBag.ProviderDisplayName</strong>.
            Please enter a user name for this site below and click the Confirm button to finish
            logging in.
                        </p>
                        <ol>
                            <li class="name">
                                @Html.LabelFor(m => m.UserName)
                                @Html.TextBoxFor(m => m.UserName)
                                @Html.ValidationMessageFor(m => m.UserName)
                            </li>
                        </ol>
                        @Html.HiddenFor(m => m.ExternalLoginData)
                        <input type="submit" value="Register" />
                    </fieldset>
                }
            </div>
        </div>
    </div>
</div>
@*@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}*@
